/**
 * @property {String} tableName 表名
 * @property {String} keyPath 主键
 * @property {Object} option indexDB建表参数
 * @property {Array} indexs indexDB索引列表
 *   @property {String} key 字段
 *   @property {Object} option 索引参数
 * @property {Object} table  表的字段
 *   @property {String} type 类型
 *   @property {any} default 默认值
 *   @property {Boolean} unEque sqlite 是否唯一
 *   @property {Boolean} automatic indexDB 是否补充随机值（type为String时）
 *   @property {Boolean} required 是否必填
 *   @property {Boolean} memory 占用空间
 */
export default{
  tableName: "demo",
  keyPath: 'id',
  option: { },
  indexs: [
    {
      key: "id",
      option:{
        unique: true
      }
    },
	{
	  key: "name",
	  option:{
	    unique: true
	  }
	}
  ],
  codes:{
    id: {
      type: 'String',
      defaultValue: '',
      automatic: true,
      required: true,
      memory:5
    },
    passwd: {
      type: 'String',
      automatic: false,
      required: true,
      defaultValue: '',
      memory:5
    },
    name: {
      type: 'String',
      automatic: false,
      required: false,
      defaultValue: '',
      memory:5
    },
  }
}
